package com.wicket.okrframework.integration.dto;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc DockingPersonInfoDto
 * @使用场景
 */
@Data
public class DockingPersonInfoDto extends BaseDto implements Serializable {

  /**
   * 身份人员编号
   */
  @ApiModelProperty("身份人员编号")
  private String roleMemberCode;

  /**
   * 真实姓名
   */
  @ApiModelProperty("真实姓名")
  private String idCardName;

  /**
   * 绑定手机
   */
  @ApiModelProperty("绑定手机")
  private String phone;

  /**
   * 用户性别 MALE:男 FEMALE:女
   */
  @ApiModelProperty("用户性别")
  private String sex;

  /**
   * 职务性质 PRINCIPAL:正职 DEPUTY:副职 MEMBER:成员
   */
  @ApiModelProperty("职务性质")
  private String positionType;

  /**
   * 职务名称
   */
  @ApiModelProperty("职务名称")
  private String positionIdName;

  /**
   * 是否主岗 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否主岗")
  private String isMainInduction;

  /**
   * 是否主管 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否主管")
  private String isDirector;

  /**
   * 部门编号
   */
  @ApiModelProperty("部门编号")
  private String deptNumber;

  /**
   * 部门名称（中文）
   */
  @ApiModelProperty("部门名称（中文）")
  private String deptName;

  /**
   * 就职开始时间
   */
  @ApiModelProperty("就职开始时间")
  private Date inductionStartTime;

  /**
   * 排序
   */
  @ApiModelProperty("排序")
  private Long orderNumber;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    DockingPersonInfoDto that = (DockingPersonInfoDto) o;
    return (
      roleMemberCode == that.roleMemberCode &&
      idCardName == that.idCardName &&
      phone == that.phone &&
      sex == that.sex &&
      positionType == that.positionType &&
      positionIdName == that.positionIdName &&
      isMainInduction == that.isMainInduction &&
      isDirector == that.isDirector &&
      deptNumber == that.deptNumber &&
      deptName == that.deptName &&
      inductionStartTime == that.inductionStartTime &&
      orderNumber == that.orderNumber
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      roleMemberCode,
      idCardName,
      phone,
      sex,
      positionType,
      positionIdName,
      isMainInduction,
      isDirector,
      deptNumber,
      deptName,
      inductionStartTime,
      orderNumber
    );
  }

}
